<?php

namespace App\Http\Controllers\TK_Api;

use App\Models\PaperReal;

class PaperController extends ApiBaseController
{
    public function list() {
        $list = PaperReal::where('status', 1)
            ->filter(request()->all())
            ->orderBy('createtime')
            ->selectRaw('id, courseId, year, title, province, cityName, concat(province,cityName) as region, ids')
            ->paginate(request('perPage', 10));

        return $this->restful($list);
    }
}
